package com.youbar.client.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 配合jsp使用
 * */
@Controller
@RequestMapping(value = "/home", produces="application/json; charset=utf-8")
public class DemoController {

    @RequestMapping("/index")
    public String index() {
        return "index";
    }

    @RequestMapping("/test")
    public String test() {
        return "{\"hint\":\"你好\",\"name\":\"秋\"}";
    }
}

